import org.eclipse.emf.ecore._
import java.util.ArrayList
import scala.collection.JavaConversions._

object Main2 {
  def main(args:Array[String]){
    val t=new Hey{
      val name="Hui"
    }
    println(t.hello)
    
    
    val c=EcorePackage.eINSTANCE.getEClass()
    val attr=c.getEAllAttributes()
    val lst=attr.toList
    lst.foreach(i => println(i.getName()))
  }
  
}

trait Hey{
  val name:String
  lazy val hello="Hello "+name
}